session=$1
tmux has-session -t $session
if [ $? != 0 ]
then
     tmux new-session -s $session -n "[a/z] vote, [c] post, [e] edit, [d] delete, [i] messages, [/] switch, [r] refresh" -D "sleep 1 && rtv -s all"
     tmux attach -t $session
else
     echo 'SESSION ALREADY EXISTS'
fi
